/**
 * 登录方式枚举、艺术类型的枚举
 */

function isThisType (val) {
  for (let key in this) {
    if (this[key] === val) {
      return true
    }
  }
  return false
}

const LoginType = {
  USER_EMAIL: 100,
  USER_MINI_PROGRAM: 200,
  USER_ADMIN: 300,
  isThisType
}

const ClassicType = {
  MOVIE: 100,
  MUSIC: 200,
  SENTENCE: 300,
  BOOK: 400,
  isThisType
}

module.exports = {
  LoginType,
  ClassicType
}